package com.xdxc.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xdxc.model.dto.QuestionPaperDto;
import com.xdxc.vo.QuestionWithOptionsVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 实体类对应数据库中的表 question_group
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("question_group")
public class QuestionGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)

    private Long id;

    private Long refGroup;
    @JsonSerialize(using = ToStringSerializer.class)

    private Long paperId;
    private String title;
    private Integer quType;
    private String quTypeDictText;
    private Integer quCount;
    private Double totalScore;
    private Double perScore;
    private Boolean quRand;  // Assuming quRand is a boolean; adjust if needed
    private Boolean itemRand; // Assuming itemRand is a boolean; adjust if needed
    private Double pathScore;

    @TableField(exist = false)
    private List<QuestionPaperDto> quList;
}